package com.kun.springbootdelivery.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author kunkun
 * @since 2025-02-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("delivery")
@AllArgsConstructor
@NoArgsConstructor
public class Delivery implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 配送id
     */
    @TableId(value = "deliveryId", type = IdType.AUTO)
    private Integer deliveryId;

    /**
     * 订单id
     */
    private Integer orderId;

    /**
     * 配送状态，0：未配送，1：已配送
     */
    private Boolean status;

    /**
     * 创建时间
     */
    @TableField(fill= FieldFill.INSERT)
    private Date createTime;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 订单内容
     */
    private String orderContent;


}
